home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1996 #1 / Amiga Plus CD - 1996 - No. 1.iso / pd / netz / xbtx_v1.1 / control.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-26  |  9.5 KB  |  216 lines

  1. /*
  2.  * Copyright (c) 1992, 1993 Arno Augustin, Frank Hoering, University of
  3.  * Erlangen-Nuremberg, Germany.
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source and binary forms, with or without
  7.  * modification, are permitted provided that the following conditions
  8.  * are met:
  9.  * 1. Redistributions of source code must retain the above copyright
  10.  *    notice, this list of conditions and the following disclaimer.
  11.  * 2. Redistributions in binary form must reproduce the above copyright
  12.  *    notice, this list of conditions and the following disclaimer in the
  13.  *    documentation and/or other materials provided with the distribution.
  14.  * 3. All advertising materials mentioning features or use of this software
  15.  *    must display the following acknowledgement:
  16.  *    This product includes software developed by the University of
  17.  *    Erlangen-Nuremberg, Germany.
  18.  * 4. Neither the name of the University nor the names of its contributors
  19.  *    may be used to endorse or promote products derived from this software
  20.  *    without specific prior written permission.
  21.  *
  22.  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
  23.  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  24.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
  25.  * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  27.  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  28.  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  29.  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  30.  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  31.  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32.  *
  33.  * This software has not been validated by the ``Bundesamt fuer Zulassungen in
  34.  * der Telekommunikation'' of the ``Deutsche Bundepost Telekom'' and thus
  35.  * must not be used for accessing the BTX-Network of the Telekom in Germany.
  36.  *
  37.  * Diese Software hat keine Zulassung durch das Bundesamt fuer Zulassungen in
  38.  * der Telekommunikation der Deutschen Bundespost Telekom und darf daher nicht
  39.  * am Netz der Deutschen Bundespost Telekom in Deutschland betrieben werden.
  40.  */
  41.  
  42.  
  43. /* primary control function set (page 119  and  annex 6) */
  44.  
  45. #define NUL 0x00         /* NOP time filler          (level 2) */
  46. #define SOH 0x01         /* start of heading         (level 2) */
  47. #define STX 0x02         /* start text               (level 2) */
  48. #define ETX 0x03         /* end text                 (level 2) */
  49. #define EOT 0x04         /* end of transmission      (level 2) */
  50. #define ENQ 0x05         /* enquiry                  (level 2) */
  51. #define ACK 0x06         /* acknowledge              (level 2) */
  52. #define ITB 0x07         /* end intermediate block   (level 2) */
  53. #define APB 0x08         /* active position back     (level 6) */
  54. #define APF 0x09         /* active position forward  (level 6) */
  55. #define APD 0x0a         /* active position down     (level 6) */
  56. #define APU 0x0b         /* active position up       (level 6) */
  57. #define CS  0x0c         /* clear screen             (level 6) */
  58. #define APR 0x0d         /* active position return   (level 6) */
  59. #define LS1 0x0e         /* locking shift 1          (level 6) */
  60. #define LS0 0x0f         /* locking shift 0          (level 6) */
  61. #define DLE 0x10         /* data link escape         (level 2) */
  62. #define CON 0x11         /* cursor on                (level 6) */
  63. #define RPT 0x12         /* repeat last character    (level 6) */
  64. #define INI 0x13         /* initiator '*'            (level 7) */
  65. #define COF 0x14         /* cursor off               (level 6) */
  66. #define NAK 0x15         /* negative acknowledge     (level 2) */
  67. #define SYN 0x16         /*                          (level 2) */
  68. #define ETB 0x17         /* end textblock            (level 2) */
  69. #define CAN 0x18         /* cancel, clear to eol     (level 6) */
  70. #define SS2 0x19         /* single shift for G2 SET  (level 6) */
  71. #define DCT 0x1a         /* terminate data collect   (level 7) */
  72. #define ESC 0x1b         /* escape                   (level 6) */
  73. #define TER 0x1c         /* terminator '#'           (level 7) */
  74. #define SS3 0x1d         /* single shift for G3 SET  (level 6) */
  75. #define APH 0x1e         /* active position home     (level 6) */
  76. #define APA 0x1f         /* active position          (level 6) */
  77. #define US  0x1f         /* unit separator (= APA)   (level 6) */
  78.  
  79.  
  80. /* supplementary control function set repertory 1 (serial) C1S (page 121) */
  81.  
  82. #define ABK 0x80         /* Alphanumeric black   */
  83. #define ANR 0x81         /* Alphanumeric red     */
  84. #define ANG 0x82         /* Alphanumeric green   */
  85. #define ANY 0x83         /* Alphanumeric yellow  */
  86. #define ANB 0x84         /* Alphanumeric blue    */
  87. #define ANM 0x85         /* Alphanumeric magenta */
  88. #define ANC 0x86         /* Alphanumeric cyan    */
  89. #define ANW 0x87         /* Alphanumeric white   */
  90. #define FSH 0x88         /* Flashing begin  */
  91. #define STD 0x89         /* Flashing steady */
  92. #define EBX 0x8a         /* End of window   */
  93. #define SBX 0x8b         /* Start of window */
  94. #define NSZ 0x8c         /* Normal size     */
  95. #define DBH 0x8d         /* Double height   */
  96. #define DBW 0x8e         /* Double width    */
  97. #define DBS 0x8f         /* Double size     */
  98. #define MBK 0x90         /* Mosaic black   */
  99. #define MSR 0x91         /* Mosaic red     */
  100. #define MSG 0x92         /* Mosaic green   */
  101. #define MSY 0x93         /* Mosaic yellow  */
  102. #define MSB 0x94         /* Mosaic blue    */
  103. #define MSM 0x95         /* Mosaic magenta */
  104. #define MSC 0x96         /* Mosaic cyan    */
  105. #define MSW 0x97         /* Mosaic white   */
  106. #define CDY 0x98         /* Conceal display  */
  107. #define SPL 0x99         /* Stop lining      */
  108. #define STL 0x9a         /* Start lining     */
  109. #define CSI 0x9b         /* Control sequence introducer */
  110. #define BBD 0x9c         /* Black background */
  111. #define NBD 0x9d         /* New background   */
  112. #define HMS 0x9e         /* Hold mosaic      */
  113. #define RMS 0x9f         /* Release mosaic   */
  114.  
  115.  
  116. /* supplementary control function set repertory 2 (parallel) C1P (page 122) */
  117.  
  118. #define BKF 0x80         /* Black   foreground */
  119. #define RDF 0x81         /* Red     foreground */
  120. #define GRF 0x82         /* Green   foreground */
  121. #define YLF 0x83         /* Yellow  foreground */
  122. #define BLF 0x84         /* Blue    foreground */
  123. #define MGF 0x85         /* Magenta foreground */
  124. #define CNF 0x86         /* Cyan    foreground */
  125. #define WHF 0x87         /* White   foreground */
  126. /*      FSH 0x88            Flashing begin  */
  127. /*      STD 0x89            Flashing steady */
  128. /*      EBX 0x8a            End of window   */
  129. /*      SBX 0x8b            Start of window */
  130. /*      NSZ 0x8c            Normal size     */
  131. /*      DBH 0x8d            Double height   */
  132. /*      DBW 0x8e            Double width    */
  133. /*      DBS 0x8f            Double size     */
  134. #define BKB 0x90         /* Black   background */
  135. #define RDB 0x91         /* Red     background */
  136. #define GRB 0x92         /* Green   background */
  137. #define YLB 0x93         /* Yellow  background */
  138. #define BLB 0x94         /* Blue    background */
  139. #define MGB 0x95         /* Magenta background */
  140. #define CNB 0x96         /* Cyan    background */
  141. #define WHB 0x97         /* White   background */
  142. /*      CDY 0x98            Conceal display  */
  143. /*      SPL 0x99            Stop lining      */
  144. /*      STL 0x9a            Start lining     */
  145. /*      CSI 0x9b            Control sequence introducer */
  146. #define NPO 0x9c         /* Normal polarity        */
  147. #define IPO 0x9d         /* Inverted polarity      */
  148. #define TRB 0x9e         /* Transparent background */
  149. #define STC 0x9f         /* Stop conceal           */
  150.  
  151.  
  152.  
  153. /*
  154.  * control code sequences (annex 6)
  155.  *
  156.  
  157. US 0x20  TFI ...         (annex 7.3)
  158. US 0x23  define DRCS     (page 86)
  159. US 0x26  define color
  160. US 0x2d  define format
  161. US 0x2f  reset
  162. US <y> <x>   position cursor at x, y
  163.  
  164. ESC 0x22 0x40  invoke serial   C1 set       (page 116)
  165. ESC 0x22 0x41  invoke parallel C1 set
  166. ESC 0x23 0x21 <Fe>  full row    attributes  (page 134)
  167. ESC 0x23 0x20 <Fe>  full screen attributes  (page 136)
  168.               <Fe> = BKB(C1P 0x50), RDB(C1P 0x51), ....
  169.  
  170. ESC 0x28 <Fi>    G0
  171. ESC 0x29 <Fi>    G1
  172. ESC 0x2a <Fi>    G2
  173. ESC 0x2b <Fi>    G3
  174.      <Fi> = 0x40        primary graphic set
  175.             0x62        suppl.  graphic set
  176.             0x63        2nd suppl. mosaic set
  177.             0x64        3rd suppl. mosaic set
  178.             0x20 0x40   DRCS
  179.  
  180. ESC 0x7e  LS1R   locking shift 1 right  (page 114)
  181. ESC 0x6e  LS2    locking shift 2
  182. ESC 0x7d  LS2R   locking shift 2 right
  183. ESC 0x6f  LS3    locking shift 3
  184. ESC 0x7c  LS3R   locking shift 3 right
  185.  
  186.  
  187. CSI 0x30 0x41  IVF    inverted flash          (page 131)
  188. CSI 0x31 0x41  RIF    reduced intesity flash
  189. CSI 0x32 0x41  FF1    fast flash 1
  190. CSI 0x33 0x41  FF2    fast flash 2
  191. CSI 0x34 0x41  FF3    fast flash 3
  192. CSI 0x35 0x41  ICF    increment flash
  193. CSI 0x36 0x41  DCF    decrement flash
  194.  
  195. CSI 0x42  STC    stop conceal (same as C1P STC)  (page 133)
  196.  
  197. CSI 0x32 0x53  MMS    marked mode start
  198. CSI 0x32 0x54  MMT    makred mode stop
  199.  
  200. CSI 0x31 0x50  PMS    protected mode start
  201. CSI 0x31 0x51  PMC    protected mode cancel
  202.  
  203. CSI 0x30 0x40  CT1    color table 1  (page 137)
  204. CSI 0x31 0x40  CT2    color table 2
  205. CSI 0x32 0x40  CT3    color table 3
  206. CSI 0x33 0x40  CT4    color table 4
  207.  
  208. CSI <URT> <URU> 0x3b <LRT> <LRU> 0x55   CSA   create scrolling area
  209. CSI <URT> <URU> 0x3b <LRT> <LRU> 0x56   DSA   delete scrolling area
  210. CSI 0x30 0x60  SCU    scroll up
  211. CSI 0x31 0x60  SCD    scroll down
  212. CSI 0x32 0x60  AIS    activate   implicit scrolling
  213. CSI 0x33 0x60  DIS    deactivate implicit scrolling
  214.  
  215.  */
  216.